<template>
    <view class="globe_back">
        <view class="box">
            <view class="fw_bold f_40" v-if="type == 0">用户已取消订单</view>
            <view class="fw_bold f_40" v-if="type == 1">申诉成功，佣金已发放</view>
            <view class="fw_bold f_40" v-if="type == 2">申诉失败</view>

            <!-- 买家信息 -->
            <view class="buyerInfo">
                <view class="flex name">
                    <view>王先生</view>
                    <view class="phone">181***1210</view>
                    <text class="smaz">上门安装</text>
                </view>
                <view>贵州省贵阳市南明区花果园购物中心1号</view>
            </view>
            <!-- 商品 -->
            <view class="flex back_fff p_24 br_24">
                <view>
                    <image class="shopImg" src="@/static/imgs/img.png" mode="widthFix"></image>
                </view>
                <view>
                    <view class="fw_bold f_32 listTitle">小牛电动 B0都市版新国标...</view>
                    <view class="flex justify_content_between">
                        <view class="cl_999CA3 mr_24 f_28">2021新款;220V</view>
                        <view class="cl_999CA3 mr_24 f_28">x1</view>
                    </view>
                    <view class="flex justify_content_end mt_40 f_28">￥50.25</view>
                </view>
            </view>

            <!-- 信息 -->
            <view class="detailedBox">
                <view class="flex justify_content_between detailed">
                    <view>取货单号</view>
                    <view>#009</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>是否上门安装</view>
                    <view>是</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>下单时间</view>
                    <view>2022-10-26 20:32:26</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>接单时间</view>
                    <view>2022-10-26 20:32:26</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>取货时间</view>
                    <view>2022-02-10 20:30:56</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>送达时间</view>
                    <view>-</view>
                </view>
                <view v-if="type == 1" class="flex justify_content_between detailed">
                    <view>申诉时间</view>
                    <view>2022-02-10 20:30:56</view>
                </view>
                <view v-if="type == 1" class="flex justify_content_between detailed">
                    <view>申诉原因</view>
                    <view>恶意</view>
                </view>
                <view v-if="type == 0" class="flex justify_content_between detailed">
                    <view>服务完成时间</view>
                    <view>-</view>
                </view>
                <view v-if="type == 0" class="flex justify_content_between detailed">
                    <view>售后原因</view>
                    <view>未安装电池</view>
                </view>
                <view v-if="type == 0" class="flex justify_content_between detailed">
                    <view>售后类型</view>
                    <view>退货退款</view>
                </view>
                <view v-if="type == 0" class="flex justify_content_between detailed">
                    <view>申请时间</view>
                    <view>2022-10-26 20:46:26</view>
                </view>
            </view>

            <!-- 描述凭证 -->
            <view class="store">
                <view class="title">描述凭证</view>
                <view class="f_28 mt_24">描述凭证描述凭证描述凭证描述凭证</view>
                <view class="infoImgBox">
                    <image class="infoimg" src="@/static/imgs/img.png" mode="widthFix"></image>
                    <image class="infoimg" src="@/static/imgs/img.png" mode="widthFix"></image>
                    <image class="infoimg" src="@/static/imgs/img.png" mode="widthFix"></image>
                </view>
            </view>
            <view class="detailedBox">
                <view class="flex justify_content_between detailed">
                    <view>配送费</view>
                    <view>--</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>安装费</view>
                    <view>--</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>合计</view>
                    <view class="cl_FF6401">--</view>
                </view>
            </view>
        </view>
        <view style="height: 20px"></view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            url: '',
            type: 0
        };
    },
    onShow() {
        this.url = this.baseUrl + this.imgPath;
    },
    onLoad(e) {
        this.type = e.type;
    },
    methods: {}
};
</script>

<style scoped lang="scss">
.buyerInfo {
    padding: 24rpx 32rpx;
    background: white;
    border-radius: 24rpx;
    margin: 24rpx 0;
    font-size: 28rpx;
    .name {
        margin-bottom: 16rpx;
    }
    .phone {
        color: #999ca3;
        margin-left: 16rpx;
    }
}
.shopImg {
    width: 200rpx;
    height: 200rpx;
    border-radius: 16rpx;
    margin-right: 24rpx;
}
.listTitle {
    width: 400rpx;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.box {
    padding: 32rpx;
    .addTitle {
        font-size: 40rpx;
        color: #00091a;
        font-weight: bold;
    }
    .addText {
        font-size: 28rpx;
        color: #999ca3;
        margin-top: 16rpx;
    }
    .icon_r {
        width: 32rpx;
        height: 32rpx;
        vertical-align: middle;
        margin-top: 36rpx;
    }
    .address {
        background: white;
        border-radius: 16rpx;
        padding: 24rpx;
    }
    .coupon,
    .detailedBox {
        background: white;
        border-radius: 16rpx;
        padding: 24rpx;
        margin-top: 24rpx;
    }
    .ProductMap {
        width: 200rpx;
        height: 200rpx;
        border-radius: 16rpx;
    }
    .couT {
        width: 30%;
        margin: 16rpx 0;
        color: #333a47;
        font-size: 28rpx;
    }
    .coutext {
        width: 70%;
        padding: 16rpx 0;
        font-size: 28rpx;
        color: #ccced1;
    }
    .couponIcon {
        width: 32rpx;
        height: 32rpx;
        vertical-align: middle;
    }
    .detailed {
        color: #333a47;
        font-size: 28rpx;
        margin-bottom: 32rpx;
    }
}
.button {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16rpx 32rpx;
    background: #ffffff;
    .buy {
        width: 176rpx;
        height: 76rpx;
        line-height: 76rpx;
        text-align: center;
        color: white;
        border-radius: 8rpx;
        background-image: linear-gradient(to right, #ff924d, #ff6401);
    }
}
.title {
    font-size: 28rpx;
    color: #333a47;
}
.info {
    font-size: 28rpx;
    color: #00091a;
    margin-top: 32rpx;
}
.infoimg {
    width: 140rpx;
    height: 140rpx;
    border-radius: 16rpx;
    margin: 24rpx 12rpx;
}
.store {
    padding: 24rpx;
    background: white;
    border-radius: 24rpx;
    margin-top: 30rpx;
}
.storeImg {
    width: 96rpx;
    height: 96rpx;
    border-radius: 16rpx;
    margin-right: 16rpx;
}
.storeTitle {
    color: #00091a;
    font-size: 32rpx;
    margin-bottom: 8rpx;
}
.address {
    width: 48rpx;
    height: 48rpx;
    display: block;
    margin: 0 auto;
}
.addressText {
    color: #999ca3;
    font-size: 24rpx;
}
.salesVolume {
    color: #999ca3;
    font-size: 28rpx;
}
</style>
